package com.hyc.myvideo;

import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.acmenxd.toaster.Toaster;
import com.bigkoo.convenientbanner.ConvenientBanner;
import com.hyc.myvideo.ui.base.BaseFActivity;
import com.hyc.myvideo.utils.imguitl.ImgUitl;

import butterknife.BindView;

public class WelcomeActivity extends BaseFActivity {
    @BindView(R.id.img)
    public ImageView imageView;
    @BindView(R.id.share_id)
    public Button button;
    @BindView(R.id.home_tab_banner)
    public ConvenientBanner convenientBanner;

    @Override
    public int getContentViewId() {
        return R.layout.activity_welcome;
    }

    @Override
    protected void initView() {
        //测试图片加载
        String url = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1495877793573&di=f2bd259f86f3d04cf0e2c02cdd9b3ca6&imgtype=0&src=http%3A%2F%2Fmvimg2.meitudata.com%2F56b3fa3b235b63332.jpg";
        ImgUitl.setLocalRoundImg(url,imageView,R.dimen.img_targetUserInfoWidth);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //new shareUtils(WelcomeActivity.this,new ShareContent());
                //测试弹出 Toast
                Toaster.show("测试000");
            }
        });
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void oNext(String resulte, String method) {

    }

    @Override
    protected void oError() {

    }


}
